package com.zykj.abstractfactory;

import com.zykj.abstractfactory.yuanliao.Cheese;
import com.zykj.abstractfactory.yuanliao.Jiangyou;
import com.zykj.abstractfactory.yuanliao.Mianfen;

/**
 * @author zhoulj(周利军) [1217102780@qq.com]
 * @Title: Pizza
 * @Project: ${MODEL_NAME}
 * @Module ID:   <(模块)类编号，可以引用系统设计中的类编号>
 * @Comments: <对此类的描述，可以引用系统设计中的描述>
 * @JDK version used:      <JDK1.8> 23
 * @since 2018/12/27-10:23
 */
public abstract class Pizza {
    String name;
    Mianfen mianfen;
    Jiangyou jiangyou;
    Cheese cheese;

    /**
     * 前期准备
     */
    public abstract void prepare() ;

    /**
     * 烘焙
     */
    public void bake() {
        System.out.println(getName()+",烘焙");
    }

    /**
     * 切
     */
    public void cute(){
        System.out.println(getName()+",切");
    }

    /**
     * 打包
     */
    public void box() {
        System.out.println(getName()+",打包");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Pizza{" +
                "name='" + name + '\'' +
                ", mianfen=" + mianfen +
                ", jiangyou=" + jiangyou +
                ", cheese=" + cheese +
                '}';
    }
}
